<cfparam name="view" type="string" default="organizations">
<cfparam name="action" type="string" default="">
<cfparam name="printable" type="boolean" default="false">
<!--- Include the controller --->
<cfinclude template="#request.pathToUI#/controller.cfm">

<cfoutput>
<!DOCTYPE html>
<html>
<head>
	<cfif NOT printable>
		<link href="//fonts.googleapis.com/css?family=Open+Sans:300,400,600,700,800" rel="stylesheet" type="text/css" />
	<cfelseif printable and view eq "howDidWeDo">
		<link href="//fonts.googleapis.com/css?family=Cabin:400,500,600,700|Cabin+Condensed:400,500,600,700|Open+Sans:300,400,600,700,800|Open+Sans+Condensed:300,700" rel="stylesheet" type="text/css" />
	</cfif>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<title>Cash for College Workshop Management System for Administrators</title>
	<meta name="viewport" content="width=device-width, initial-scale=1.0">
	<meta name="description" content="Cash for College Workshop Management System for Administrators">
	<meta name="author" content="Syntric">
	<meta http-equiv="CACHE-CONTROL" content="NO-CACHE">
	<meta http-equiv="EXPIRES" content="Mon, 22 Jul 2002 11:12:01 GMT">
	<link href="#request.pathToBootstrapCSS#" rel="stylesheet" />
	<link href="#request.pathToKendoCommonCSS#" rel="stylesheet" />
	<link href="#request.pathToKendoDefaultCSS#" rel="stylesheet" />
	<link href="#request.pathToFontAwesomeCSS#" rel="stylesheet" />
	<link href="#request.pathToUI#/common.css" rel="stylesheet" />
	<script src="#request.pathToJQuery#" type="text/javascript"></script>
	<script src="#request.pathToBootstrap#" type="text/javascript"></script>
	<script src="#request.pathToKendo#" type="text/javascript"></script>
	<script src="#request.pathToUI#/common.js" type="text/javascript"></script>
	<script type="text/javascript">
	<!--
		<cfif IsDefined("generateFundInvoice") and IsDefined("Fund_ID")>
			window.open("?view=fundInvoice&Fund_ID=#Fund_ID#&printable=true");
		</cfif>
		<cfif IsDefined("generatePaymentReceipt") and IsDefined("Payment_ID")>
			window.open("?view=paymentReceipt&Payment_ID=#Payment_ID#&printable=true");
		</cfif>
	//-->
	</script>
	<cfif NOT printable>
		<style>
			body {
				padding-top: 35px;
				font-family: "Open Sans", "Helvetica Neue", Helvetica, Myriad, Arial, sans-serif;
				<!--- background-color: ##54b1cd; --->
			}
		</style>
	<cfelseif printable and view eq "howDidWeDo">
		<style>
			body {font-family: "Cabin", "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;}
		</style>
	</cfif>
</head>
<body>
	<div class="container-fluid">
		<!--- header --->
		<cfif NOT printable>
			<div id="adminNav" class="navbar navbar-fixed-top">
				<div class="navbar-inner">
					<ul class="nav nav-pills">
						<li><a href="?view=organizations" class="first">Organizations</a></li>
						<li class="divider-vertical"></li>
						<li><a href="?view=users">Users</a></li>
						<li class="divider-vertical"></li>
						<!--- <li><a href="?view=sites">Sites</a></li>
						<li class="divider-vertical"></li> --->
						<li><a href="?view=workshops">Workshops</a></li>
						<li class="divider-vertical"></li>
						<!--- <li><a href="?view=volunteers">Volunteers</a></li>
						<li class="divider-vertical"></li> --->
						<li><a href="?view=orders">Orders</a></li>
						<li class="divider-vertical"></li>
						<li><a href="?view=students">Students</a></li>
						<li class="divider-vertical"></li>	
						<li><a href="?view=exitSurveys">Exit Surveys</a></li>
						<li class="divider-vertical"></li>
						<cfif IsUserInRole("Super User")>
							<li><a href="?view=gds">GDS</a></li>
							<li class="divider-vertical"></li>
						</cfif>
						<li><a href="?view=funds">Fund Requests</a></li>
						<li class="divider-vertical"></li>
						<li><a href="?view=scholarships">Scholarships</a></li>
						<li class="divider-vertical"></li>
						<cfif IsUserInRole("Super User") or GetAuthUser() eq 620>
							<li><a href="?view=payments">Payments</a></li>
							<li class="divider-vertical"></li>
						</cfif>
						<!--- <li><a href="?view=acknowledgments">Acknowledgments</a></li>
						<li class="divider-vertical"></li> --->
						<li><a href="?view=howdidwedo">How Did We Do?</a></li>
						<li class="divider-vertical"></li>
						<li><a href="?view=resources">Resources</a></li>
						<li class="divider-vertical"></li>
						<cfif IsUserInRole("Super User")>
							<li><a href="?view=institutions">Institutions</a></li>
							<li class="divider-vertical"></li>
						</cfif>
						<li class="dropdown">
							<a href="##" class="dropdown-toggle" data-toggle="dropdown">#request.authUser.fullName#&nbsp;<span class="caret"></span></a>
							<ul class="dropdown-menu">
								<li><a href="?view=editUser&returnView=#view#&User_ID=#GetAuthUser()#">Account</a></li>
								<li><a href="?logout">Logout</a></li>
							</ul>						
						</li>
					</ul>
				</div>
			</div>
		</cfif>
		<!--- body --->
		<div class="row-fluid">
			<div class="span12">
				<cftry>
					<!--- interface --->
					<cfinclude template="#request.pathToUI#/interfaces/#view#.cfm">
					<cfcatch type="missinginclude">
						<h1>Page Not Found</h1>
						<p>The page you have requested could not be found.</p>
					</cfcatch>
				</cftry>
			</div>
		</div>
	</div>
</body>
</html>
</cfoutput>
